package com.api.oa.services;

import com.api.oa.model.entity.OaMessage;
import com.api.oa.model.entity.OaOrg;
import com.api.oa.model.vo.OaMessageVO;
import com.api.oa.model.vo.OaOrgTreeVO;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IOaMessageService {


    OaMessageVO add(OaMessage oaOrg) throws Exception;


    void remove(Long id);


    Integer update(OaMessage org);


    List<OaMessageVO> list(Long pid);


    OaOrg one(Long id);


    /**
     * 聊天记录
     * @param from
     * @param to
     * @return
     */
    PageInfo<OaMessageVO> list(String from, String to,Integer pageIndex,Integer pageSize) throws Exception;


    /**
     * 发送视频
     * @param from
     * @param to
     */
    Integer sendVideo(String from,String to);


}
